package org.dtrd.modules.patient.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Getter;
import lombok.Setter;


/**
 * <p>
 *
 * </p>
 *
 * @author qiannai
 * @since 2022-09-14
 */
@Getter
@Setter
@TableName("dtrd_ent_rd_report_target")
public class DtrdEntRdReportTarget {

    /**
     * 月报的控制目标输入数据表
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 报告ID
     */
    @TableField("report_id")
    private Integer reportId;

    /**
     * 患者ID
     */
    @TableField("patient_id")
    private Integer patientId;

    /**
     * 记录日期
     */
    @TableField("record_date")
    private Date recordDate;

    /**
     * 记录类型，TargetProject
     */
    @TableField("type_id")
    private Integer typeId;

    /**
     * 记录数值
     */
    @TableField("record_value")
    private Float recordValue;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;

    /**
     * 是否删除
     */
    @TableField("is_del")
    @TableLogic
    private Integer isDel;

    public DtrdEntRdReportTarget init() {
        createTime = new Date();
        isDel = 0;
        return this;
    }



}
